import requests


class add_cartAPI():
    def __init__(self):
        self.add_cart_url = "http://192.168.65.136:8080/wx/cart/add"

    # def login(self,test_data):
    #     return requests.post(url=self.url_login,json=test_data)

    def add_cart(self, token, test_data):
        return requests.post(url=self.add_cart_url,
                             headers={"X-Litemall-Token": token},
                             json=test_data)